cmake_minimum_required(VERSION 2.8)

include_directories(${STK_SRC_DIR})
link_directories(${STK_SRC_DIR})

# set(CONFIGS log.ini)

if(BUILD_SHARED_LIBS)
    add_executable(stk_test main.cpp)
    target_link_libraries(stk_test stk -pthread)
    install(TARGETS stk_test DESTINATION bin)
endif()

if(BUILD_STATIC_LIBS)
    add_executable(stk_test_static main.cpp)
    add_definitions(-DSTK_STATICLIB)
    target_link_libraries(stk_test_static stk_static -pthread)
    #set_target_properties(stk_test_static PROPERTIES OUTPUT_NAME "stk_test_static")
    install(TARGETS stk_test_static DESTINATION bin)
endif()

# install(FILES ${CONFIGS} DESTINATION bin)
